'''
Created on 7.12.2011

@author: hkh
'''

from CashFlowUtils.IceBonds import *
from Calendar.Iceland import *
from datetime import date
from datetime import timedelta

ddate = date(2011,12,8)
bond = HFF150644()

dirtyp = bond.dirtyprice(ddate, 0.03)
print dirtyp
cleanp = bond.cleanprice(ddate, 0.03)
print cleanp

print bond.duration(ddate, 0.04)

#cf = bond.remaining_cashflows(ddate)
#cf = bond.cashflows()
#for obj in cf:
#    print obj.yearfrac, obj.cfdate, obj.daysPeriod, obj.amount, obj.notional, obj.interests, obj.amortization
